"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const Point_1 = require("./Point");
const Utils_1 = __importDefault(require("./Utils"));
class MapCreator {
    constructor() {
        this.arr_points = require("../../地图文件/map.json");
        this.arr_small_born = [Utils_1.default.getPointId(-5.5, 9), Utils_1.default.getPointId(-4.5, -9), Utils_1.default.getPointId(9.5, 1)];
    }
    getArrPoints() {
        let arr_points = new Array();
        for (var p of this.arr_points) {
            arr_points.push(new Point_1.Point(p.x, p.y, p.terrain));
        }
        return arr_points;
    }
    getSmallBorn(index) {
        return this.arr_small_born[index];
    }
}
exports.default = new MapCreator();
